{include file="public/header" /}</head>
<body class="layui-anim">
<div class="x-nav layui-row">
	<span class="layui-breadcrumb layui-col-md9 layui-col-sm9">
		<a href="javascript:;">首页</a>
		{if $_page_navi.0}<a href="javascript:;">{$_page_navi.0.NavName}</a>{/if}
		{if $_page_navi.1}<a><cite>{$_page_navi.1.NavName}</cite></a>{/if}
	</span>
	<a class="layui-btn layui-btn-small" style="float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon">&#xe9aa;</i></a>
</div>
<div class="x-body">
	<blockquote class="layui-elem-quote layui-clear " style="padding: 5px;line-height: 38px;">
		<span style="font-size: 16px;"><i class="layui-icon">&#xe653;</i>&nbsp;{$_page_navi.1.NavName}</span>
		<form class="layui-form layui-col-md8 x-so layui-form-pane x-right" style="margin: 0;text-align: right;">
			<input class="layui-input" placeholder="请输入姓名/编号" name="keyword" value="{$Request.param.keyword}"/>
			<input class="layui-input date_range" placeholder="选择日期" name="start" value="{$Request.param.start}" style="width: 20%"/>

			<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
			{if $Request.param.keyword || $Request.param.start}
			<a href="{:url('account/index',['type'=>$Request.param.type])}" class="layui-btn layui-bg-blue" >撤销搜索</a>
			{/if}
		</form>
	</blockquote>
	<xblock>
		<!-- <a class="layui-btn" target="_blank" href="{:URL(request()->controller().'/export_recharge',$Request.param)}"><i class="layui-icon layui-icon-download-circle"></i>Excel</a> -->
		<span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
	</xblock>
	<table class="layui-table layui-form">
		<thead>
		<tr>
			<th>姓名</th>
			<th>编号</th>
			<th>金额</th>
			<th>支付凭证</th>
			<th>时间</th>
			<th>状态</th>
			<th width="120px">操作</th>
		</tr>
		</thead>
		<tbody>
		{volist name="list" id="v"}
		<tr class="data_line" data_id="{$v.id}">
			<td>{$v.nickname}</td>
			<td>{$v.code}</td>
			<td>{$v.total}</td>
			<td><a href="{$v.img}" target="_blank">点击查看</a></td>
			<td>{$v.create_time|date='Y-m-d H:i:s',###}</td>
			<td>{if $v.state == 1}待审核{elseif $v.state == 2}已通过{else}已驳回{/if}</td>
			<td>
				{if $v.state == 1}
				<a class="layui-btn layui-btn-sm state" data-id="{$v.id}" data-value="2" data-confirm="是否通过？" url="{:URL('account/recharge_state',['key'=>'state'])}">通过</a>
				<a class="layui-btn layui-btn-sm layui-btn-danger state" data-id="{$v.id}" data-value="3" data-confirm="确认要驳回吗？" url="{:URL('account/recharge_state',['key'=>'state'])}">驳回</a>
				{else}
				已审核
				{/if}
			</td>
		</tr>
		{/volist}
		</tbody>
	</table>
	<div class="page"><div>{$list->render()}</div></div>
</div>
</body>
</html>